<?php
// +----------------------------------------------------------------------
// | 缓存设置
// +----------------------------------------------------------------------
// | Copyright (c) 2020 http://www.quickdf.com, All rights reserved.
// +----------------------------------------------------------------------
// | Author: 水平凡 <admin@abc3210.com>
// +----------------------------------------------------------------------

use think\facade\Env;

return [
    //默认缓存驱动
    'default' => Env::get('cache.driver', 'cache'),
    'stores' => [
        //缓存
        'cache' => [
            'type' => 'Memcache',
            'host' => Env::get('cache.host', '127.0.0.1'),
            'port' => 11211,
            'prefix' => 'qm.',
        ],
        //缓存
        'redis' => [
            'type' => 'Redis',
            'host' => Env::get('redis.host', '127.0.0.1'),
            'port' => 6379,
            'prefix' => 'qm.',
        ],
        //session
        'session' => [
            'type' => 'Redis',
            'host' => Env::get('session.host', '127.0.0.1'),
            'port' => Env::get('session.port', 6379),
            'prefix' => 'qm.session.',
        ],
    ],
];
